package cn.edu.njust.javaexplor;

public class EnumDemo {

	public static void main(String[] args) {
		String string = System.console().readLine();
		System.out.println(string);
		doAction(Action.TURN_LEFT);
	}
	
	public static void doAction(Action a) {
		switch (a) {
		case TURN_LEFT:
			System.out.println("turnleft");
			break;
		case TURN_RIGHT:
			System.out.println("turnright");
		default:
			System.out.println("default");
			break;
		}
	}
}
